<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@include file="/WEB-INF/views/common/head.jsp"%>
<title>部门管理</title>
</head>
<body>
	<s:form id="domainForm">
		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try {
						ace.settings.check('breadcrumbs', 'fixed')
					} catch (e) {
					}
				</script>

				<ul class="breadcrumb">
					<li><i class="icon-home home-icon"></i> <a href="/main.action">主页</a>
					</li>

					<li><a href="#">组织机构模块</a></li>
					<li class="active">部门 &amp 管理</li>
				</ul>
				<!-- .breadcrumb -->
			</div>

			<div class="page-content">
				<div class="page-header">
					<%--  部门名称：
					 <s:select list="#allDepts" name="baseQuery.deptId" listValue="name" listKey="id"
					 headerKey="-1" headerValue="--请选择--"/>
					
					<a class="btn btn-purple btn-sm" href="#" onclick="go(1);">搜索 <i
						class="icon-search icon-on-right bigger-110"></i>  --%>
						
						<a
						href="/department_input.action" class="btn btn-yellow">添加</a> <%-- 					查询条件 <small> <i class="icon-double-angle-right"></i> Static --%>
						<!-- 						&amp; Dynamic Tables --> <%-- 					</small> --%> <!-- 					<a href="/employee_input.action" class="btn btn-yellow">添加</a> -->

						<div>
							<!-- /.page-header -->

							<div class="row">
								<div class="col-xs-12">
									<!-- PAGE CONTENT BEGINS -->
									<div class="row">
										<div class="col-xs-12">
											<div class="table-responsive">
												<table id="sample-table-1"
													class="table table-striped table-bordered table-hover">
													<thead>
														<tr>
															<th class="center"><label> <input
																	type="checkbox" class="ace" /> <span class="lbl"></span>
															</label></th>
															<th>id</th>
															<th>部门名称</th>
															<th>操作</th>
														</tr>
													</thead>

													<tbody>
														<s:iterator value="#allDepts">
															<tr>
																<td class="center"><label> <input
																		type="checkbox" class="ace" /> <span class="lbl"></span>
																</label></td>

																<td>${id}</td>
																<td>${name}</td>
																<td>

																	<div
																		class="visible-md visible-lg hidden-sm hidden-xs btn-group">

																		<button type="button"
																			onclick="javascript:location.href='/department_input.action?id=${id}'"
																			class="btn btn-xs btn-info">
																			<i class="icon-edit bigger-120"></i>
																		</button>

																		<button type="button"
																			onclick="javascript:location.href='/department_delete.action?id=${id}'"
																			onclick="return confirm('确定要删除这个用户吗?')" title="回收站"
																			class="btn btn-xs btn-danger">
																			<i class="icon-trash bigger-120"></i>
																		</button>

																	</div>
																</td>
															</tr>
														</s:iterator>
													</tbody>
												</table>
											</div>
											<!-- /.table-responsive -->
										</div>
										<!-- /span -->
									</div>
									<!-- /row -->

							<%-- 	<%@include file="/WEB-INF/views/common/page.jsp"%>
 --%>
									<div class="hr hr-18 dotted hr-double"></div>
								</div>
							</div>
							<!-- /.row -->
						</div> <!-- /.page-content -->
				</div>
			</div>
	</s:form>
</body>
</html>